package com.ricky.onlineShop.read.trading.mapper;

import com.ricky.onlineShop.shop.trading.pojo.TradingPerformance;

import java.util.List;

/**
 * 绩效Mapper接口
 *
 * @author ricky
 * @date 2024-07-17
 */
public interface TradingPerformanceMapper
{
    /**
     * 查询绩效
     *
     * @param id 绩效主键
     * @return 绩效
     */
    public TradingPerformance selectTradingPerformanceById(String id);

    /**
     * 查询绩效列表
     *
     * @param tradingPerformance 绩效
     * @return 绩效集合
     */
    public List<TradingPerformance> selectTradingPerformanceList(TradingPerformance tradingPerformance);

    /**
     * 新增绩效
     *
     * @param tradingPerformance 绩效
     * @return 结果
     */
    public int insertTradingPerformance(TradingPerformance tradingPerformance);

    /**
     * 修改绩效
     *
     * @param tradingPerformance 绩效
     * @return 结果
     */
    public int updateTradingPerformance(TradingPerformance tradingPerformance);

    /**
     * 删除绩效
     *
     * @param id 绩效主键
     * @return 结果
     */
    public int deleteTradingPerformanceById(String id);

    /**
     * 批量删除绩效
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTradingPerformanceByIds(String[] ids);
}
